package Extends.CircleExec;

/**
 * @author Jimmy
 * @date 2022/11/13 - 19:30
 */
public class Cylinder extends Circle{
    private double length;

    public Cylinder(){
        this.length = 1.0;
    }
    public Cylinder(double length){
        this.length = length;
    }

    public Cylinder(double radius, double length) {
        super(radius);
        this.length = length;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double findVolume(){
        return (findArea() * length);
    }
}
